package org.qydjk.common.pojo.seller;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 商家实体
 *  Created by Edward_yang on 2017/12/14
 */
@Entity
@Table(name = "qy_seller", catalog = "qydjk")

public class Seller  {

	private Integer id;
	private Integer userId;//用户ID
	private String name;  //商家名称
	private BigDecimal startingFare;
	private BigDecimal settlementRatio;//结算比例
	private String logo;// 商家logo
	private String img; // 商家大图
	private String thumbnailImg;//商家缩略图
	private Integer oneAreaId;
	private String oneAreaName;
	private Integer twoAreaId;
	private String twoAreaName;
	private Integer threeAreaId;
	private String threeAreaName;
	private String categoryIds;
	private String labelCodes;
	private String areaIds;
	private Double lon;
	private Double lat;
	private String address;//地址
	private String tel;//联系电话
	private String phone;//接收短信的电话
	private String businessHours;//营业时间，体检时间
	private String des; //机构简介
	private String detail;//机构详情，富文本
	private String buyInfo;//体检须知，富文本
	private String appointmentInfo;//预约流程，富文本
	private Integer virtaulCommentCount;//
	private Integer commentCount;
	private Float commentScore;
	private Integer virtualAppointmentCount;//虚拟预约数量
	private Integer appointmentCount; //预约数量
	private Integer satisfactionDegree;
	private Integer productCount;
	private Integer virtualCollectAccount;//虚拟收藏
	private Integer collectAccount; //收藏数量
	private Date createTime;
	private Date updateTime;
	private Integer ord;
	private Integer verifyType;
	private Integer status;
	 private BigDecimal initiatePric;


	// Constructors

	/** default constructor */
	public Seller() {
	}

	/** full constructor */
	public Seller(Integer userId, String name, BigDecimal startingFare, BigDecimal settlementRatio, String logo, String img,
			String thumbnailImg, Integer oneAreaId, String oneAreaName, Integer twoAreaId, String twoAreaName, Integer threeAreaId, String threeAreaName, String categoryIds,String labelCodes,String areaIds, Double lon, Double lat, String address,
			String tel, String phone, String businessHours, String des, String detail, Integer virtaulCommentCount,
			Integer commentCount, Float commentScore, Integer virtualAppointmentCount, Integer appointmentCount,
			Integer satisfactionDegree, Integer productCount, Integer virtualCollectAccount, Integer collectAccount,
			Date createTime, Date updateTime, Integer ord, Integer verifyType, Integer status,String appointmentInfo, String buyInfo,BigDecimal initiatePric) {
		this.userId = userId;
		this.name = name;
		this.startingFare = startingFare;
		this.settlementRatio = settlementRatio;
		this.logo = logo;
		this.img = img;
		this.thumbnailImg = thumbnailImg;
		this.oneAreaId = oneAreaId;
		this.oneAreaName = oneAreaName;
		this.twoAreaId = twoAreaId;
		this.twoAreaName = twoAreaName;
		this.threeAreaId = threeAreaId;
		this.threeAreaName = threeAreaName;
		this.categoryIds = categoryIds;
		this.labelCodes = labelCodes;
		this.areaIds = areaIds;
		this.lon = lon;
		this.lat = lat;
		this.address = address;
		this.tel = tel;
		this.phone = phone;
		this.businessHours = businessHours;
		this.des = des;
		this.detail = detail;
		this.virtaulCommentCount = virtaulCommentCount;
		this.commentCount = commentCount;
		this.commentScore = commentScore;
		this.virtualAppointmentCount = virtualAppointmentCount;
		this.appointmentCount = appointmentCount;
		this.satisfactionDegree = satisfactionDegree;
		this.productCount = productCount;
		this.virtualCollectAccount = virtualCollectAccount;
		this.collectAccount = collectAccount;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.ord = ord;
		this.verifyType = verifyType;
		this.status = status;
		this.appointmentInfo = appointmentInfo;
		this.buyInfo = buyInfo;
		this.initiatePric = initiatePric;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "id", unique = true, nullable = false)

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "user_id")

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "name", length = 200)

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "starting_fare", precision = 12)

	public BigDecimal getStartingFare() {
		return this.startingFare;
	}

	public void setStartingFare(BigDecimal startingFare) {
		this.startingFare = startingFare;
	}

	@Column(name = "settlement_ratio", precision = 12)

	public BigDecimal getSettlementRatio() {
		return this.settlementRatio;
	}

	public void setSettlementRatio(BigDecimal settlementRatio) {
		this.settlementRatio = settlementRatio;
	}

	@Column(name = "logo", length = 200)

	public String getLogo() {
		return this.logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	@Column(name = "img", length = 200)

	public String getImg() {
		return this.img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	@Column(name = "thumbnail_img", length = 200)

	public String getThumbnailImg() {
		return this.thumbnailImg;
	}

	public void setThumbnailImg(String thumbnailImg) {
		this.thumbnailImg = thumbnailImg;
	}

	@Column(name = "category_ids", length = 200)

	public String getCategoryIds() {
		return this.categoryIds;
	}

	public void setCategoryIds(String categoryIds) {
		this.categoryIds = categoryIds;
	}


	@Column(name = "area_ids", length = 200)

	public String getAreaIds() {
		return this.areaIds;
	}

	public void setAreaIds(String areaIds) {
		this.areaIds = areaIds;
	}


	@Column(name = "label_codes", length = 200)


	public String getLabelCodes() {
		return labelCodes;
	}

	public void setLabelCodes(String labelCodes) {
		this.labelCodes = labelCodes;
	}


	@Column(name = "lon", precision = 9, scale = 6)

	public Double getLon() {
		return this.lon;
	}

	public void setLon(Double lon) {
		this.lon = lon;
	}

	@Column(name = "lat", precision = 9, scale = 6)

	public Double getLat() {
		return this.lat;
	}

	public void setLat(Double lat) {
		this.lat = lat;
	}

	@Column(name = "address", length = 100)

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "tel", length = 20)

	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	@Column(name = "phone", length = 11)

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "business_hours", length = 100)

	public String getBusinessHours() {
		return this.businessHours;
	}

	public void setBusinessHours(String businessHours) {
		this.businessHours = businessHours;
	}

	@Column(name = "des", length = 65535)

	public String getDes() {
		return this.des;
	}

	public void setDes(String des) {
		this.des = des;
	}

	@Column(name = "detail", length = 65535)

	public String getDetail() {
		return this.detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	@Column(name = "virtaul_comment_count")

	public Integer getVirtaulCommentCount() {
		return this.virtaulCommentCount;
	}

	public void setVirtaulCommentCount(Integer virtaulCommentCount) {
		this.virtaulCommentCount = virtaulCommentCount;
	}

	@Column(name = "comment_count")

	public Integer getCommentCount() {
		return this.commentCount;
	}

	public void setCommentCount(Integer commentCount) {
		this.commentCount = commentCount;
	}

	@Column(name = "comment_score", precision = 2, scale = 1)

	public Float getCommentScore() {
		return this.commentScore;
	}

	public void setCommentScore(Float commentScore) {
		this.commentScore = commentScore;
	}

	@Column(name = "virtual_appointment_count")

	public Integer getVirtualAppointmentCount() {
		return this.virtualAppointmentCount;
	}

	public void setVirtualAppointmentCount(Integer virtualAppointmentCount) {
		this.virtualAppointmentCount = virtualAppointmentCount;
	}

	@Column(name = "appointment_count")

	public Integer getAppointmentCount() {
		return this.appointmentCount;
	}

	public void setAppointmentCount(Integer appointmentCount) {
		this.appointmentCount = appointmentCount;
	}

	@Column(name = "satisfaction_degree")

	public Integer getSatisfactionDegree() {
		return this.satisfactionDegree;
	}

	public void setSatisfactionDegree(Integer satisfactionDegree) {
		this.satisfactionDegree = satisfactionDegree;
	}

	@Column(name = "product_count")

	public Integer getProductCount() {
		return this.productCount;
	}

	public void setProductCount(Integer productCount) {
		this.productCount = productCount;
	}

	@Column(name = "virtual_collect_account")

	public Integer getVirtualCollectAccount() {
		return this.virtualCollectAccount;
	}

	public void setVirtualCollectAccount(Integer virtualCollectAccount) {
		this.virtualCollectAccount = virtualCollectAccount;
	}

	@Column(name = "collect_account")

	public Integer getCollectAccount() {
		return this.collectAccount;
	}

	public void setCollectAccount(Integer collectAccount) {
		this.collectAccount = collectAccount;
	}

	@Column(name = "create_time", length = 19)

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "update_time", length = 19)

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "ord")

	public Integer getOrd() {
		return this.ord;
	}

	public void setOrd(Integer ord) {
		this.ord = ord;
	}

	@Column(name = "verify_type")

	public Integer getVerifyType() {
		return this.verifyType;
	}

	public void setVerifyType(Integer verifyType) {
		this.verifyType = verifyType;
	}

	@Column(name = "status")

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "appointment_info", length = 65535)

	public String getAppointmentInfo() {
		return this.appointmentInfo;
	}
	public void setAppointmentInfo(String appointmentInfo) {
		this.appointmentInfo = appointmentInfo;
	}

	@Column(name = "buy_info", length = 65535)
	public String getBuyInfo() {
		return buyInfo;
	}

	public void setBuyInfo(String buyInfo) {
		this.buyInfo = buyInfo;
	}

	@Column(name = "initiate_price")
	public BigDecimal getInitiatePric() {
		return initiatePric;
	}

	public void setInitiatePric(BigDecimal initiatePric) {
		this.initiatePric = initiatePric;
	}

	@Column(name = "one_area_id")

	public Integer getOneAreaId() {
		return this.oneAreaId;
	}

	public void setOneAreaId(Integer oneAreaId) {
		this.oneAreaId = oneAreaId;
	}

	@Column(name = "one_area_name", length = 100)

	public String getOneAreaName() {
		return this.oneAreaName;
	}

	public void setOneAreaName(String oneAreaName) {
		this.oneAreaName = oneAreaName;
	}

	@Column(name = "two_area_id")

	public Integer getTwoAreaId() {
		return this.twoAreaId;
	}

	public void setTwoAreaId(Integer twoAreaId) {
		this.twoAreaId = twoAreaId;
	}

	@Column(name = "two_area_name", length = 100)

	public String getTwoAreaName() {
		return this.twoAreaName;
	}

	public void setTwoAreaName(String twoAreaName) {
		this.twoAreaName = twoAreaName;
	}

	@Column(name = "three_area_id")

	public Integer getThreeAreaId() {
		return this.threeAreaId;
	}

	public void setThreeAreaId(Integer threeAreaId) {
		this.threeAreaId = threeAreaId;
	}

	@Column(name = "three_area_name", length = 100)

	public String getThreeAreaName() {
		return this.threeAreaName;
	}

	public void setThreeAreaName(String threeAreaName) {
		this.threeAreaName = threeAreaName;
	}

}